package com.smartlight.godlight.constant;

import android.util.Log;

import androidx.annotation.Nullable;

public class GodlApi {
    public final static boolean isProd = false;
    public final static String BASEURL = "http://8.134.223.205";
    public final static String GET_APP_INFO = GodlApi.BASEURL + "/api/index/index";
    public final static String GET_PAY_URL = GodlApi.BASEURL + "/api/pay/getpayurl";
    public final static String GET_MerOrderId = GodlApi.BASEURL + "/api/pay/getMerOrderId";
    public final static String PAY_QUERY = GodlApi.BASEURL + "/api/pay/payQuery";

    public final static String SUBMIT_ORDER = GodlApi.BASEURL + "/api/pay/submitOrder";  // 提交订单,确认订单

    /**
     * 定义全局的打印函数
     */
    public static void printLog(@Nullable String tag, @Nullable String msg){
        if (!isProd) Log.d(tag, msg);
    }
}
